import { curry } from "lodash"

function coffee(volume: string, strength: string) {
    return `Coffee volume: ${volume}ml, strength: ${strength}`
}

const defineCoffeeType =
    (volume: string) =>
        (strength: string) =>
            coffee(volume, strength)

const coffeeeee = defineCoffeeType('50ml')('cabuccino')
console.log('coffeeeee======>', coffeeeee)


const url1 = 'https://github.com/foo/bar'
const url2 = 'https:/example.com/whatever/?qs=32'


function equal(value1: any, value2: any) {
    return value1 == value2
}


function testCoffe(type: 'cabuccino' | 'monaco', volume: number, size: 'small' | 'midium' | 'large') {
    console.log('type======>', type);
    console.log('volume======>', volume);
    console.log('size======>', size);
}

const buyCoffee = curry(testCoffe)

const buyCabuccino = buyCoffee('cabuccino')

const tenBuyCabuccino = buyCabuccino(10)

const last = tenBuyCabuccino('midium')